//
//  FKAnimationLabel.m
//  ThreePointTest
//
//  Created by CloudLife on 16/2/15.
//
//

#import "FKAnimationLabel.h"

@implementation FKAnimationLabel

- (id)init {
    self = [super init];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (void)drawRect:(CGRect)rect {
    
    [super drawRect:rect];
//    [[UIColor whiteColor] setFill];

    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetLineCap(context, kCGLineCapRound);
    CGContextSetLineWidth(context, 0.6);  //线宽
    CGContextSetAllowsAntialiasing(context, true);
    CGContextSetRGBStrokeColor(context, 0.322, 0.769, 0.722, 1.0);  //线的颜色70.0 / 255.0, 241.0 / 255.0, 241.0 / 255.0, 1.0
    CGContextBeginPath(context);
    
    CGContextMoveToPoint(context, 0, self.bounds.size.height/2.0);
    CGContextAddLineToPoint(context, 8, 0);
    CGContextAddLineToPoint(context, self.bounds.size.width-8, 0);
    CGContextAddLineToPoint(context, self.bounds.size.width, self.bounds.size.height/2.0);
    CGContextAddLineToPoint(context, self.bounds.size.width-8, self.bounds.size.height);
    CGContextAddLineToPoint(context, 8, self.bounds.size.height);
    CGContextAddLineToPoint(context, 0, self.bounds.size.height/2.0);

    CGContextStrokePath(context);

    //设置背景颜色
    
    
    
    
    //拿到当前视图准备好的画板
    
    
    

}

@end
